<!--#include virtual="/includes/core-functions.asp"-->
<%
if session("u_level") = 10 then
	user = request.form("ui")
	else
	user = session("u_id")
end if

'Response.Write user

remAvatar user

if Session("u_level") = 10 and instr(request.ServerVariables("HTTP_REFERER"),"user-edit")> 0 then
	Response.Redirect "/admin/user-edit.asp?id=" & user
	else
	Response.Redirect "/profile.asp?msg=Avatar Updated."
end if
%>